package com.team.employment.web.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.team.employment.model.entity.PositionInfo;
import com.team.employment.web.admin.service.PositionInfoService;

import com.team.employment.web.admin.mapper.PositionInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
* @author 陈钰儿
* @description 针对表【position_info(一级职位表)】的数据库操作Service实现
* @createDate 2025-04-11 15:49:26
*/
@Service
public class PositionInfoServiceImpl extends ServiceImpl<PositionInfoMapper, PositionInfo>
    implements PositionInfoService{
    @Autowired
    private PositionInfoMapper positionInfoMapper;
    @Override
    @Transactional
    public void deleteLevel1(Long id) {
        positionInfoMapper.deleteLevel1(id);
        positionInfoMapper.deleteLevel1withLevel23(id);
    }

}




